<?php 

    $searchUrl = 'http://211.144.202.140:8888/yxz/api/group/create';
	

	$headers = getallheaders();


	$ch = curl_init($searchUrl);
	$data = json_encode( array( 
	    "group_name"=> $_GET["group_name"],
	    "group_desc"=> $_GET["group_desc"]
	) );

	curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
	curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
	curl_setopt($ch,CURLOPT_HTTPHEADER,array("HTTP_X_OAUTH:" . $headers["HTTP_X_OAUTH"]));
	curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
	curl_setopt($ch, CURLINFO_HEADER_OUT, true);
	echo curl_exec($ch);
?>
